home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr48
/
vdl020d.zip
/
VDOSHIGH.DOC
< prev
next >
Wrap
Text File
|
1993-04-14
|
4KB
|
176 lines
{
════════════════════════════════════════════════════════════════════════════
Visionix DOS High-Level Functions Unit (VDOSHIGH)
Copyright 1991,92,93 Visionix
ALL RIGHTS RESERVED
────────────────────────────────────────────────────────────────────────────
Revision history in reverse chronological order:
Initials Date Comment
-------- -------- -------------------------------------------------------
lpg 03/25/93 Added: GetVolLabel,GetFileSysType
lpg 03/15/93 Added Source Documentation
jrt 03/08/93 First logged revision. Took functions from VGEn
and moved them here.
════════════════════════════════════════════════════════════════════════════
}
UNIT VDOSHigh;
Uses
DOS,
VTypes,
VGen,
VDos;
{────────────────────────────────────────────────────────────────────────────}
{------------------}
{ Diskette and DOS }
{------------------}
Function GetDOSVersion : WORD;
Function DisketteStatus( Drive : WORD ) : BYTE;
Function FloppyReady( Drive : WORD ) : BOOLEAN;
Function PutSlash( S : STRING ) : STRING;
Function UnPutSlash( S : STRING ) : STRING;
Function PutDot( S : STRING ) : STRING;
Function UnPutDot( S : STRING ) : STRING;
Function FileExist( fn : PathStr ) : BOOLEAN;
Function GetFileTime( fn : PathStr ) : LONGINT;
Function GetFileAttr( fn : PathStr ) : WORD;
Function GetFileSize( fn : PathStr ) : LONGINT;
Function DirExist( stDir : DirStr ) : BOOLEAN;
Function DirEmpty( stDir : DirStr ) : BOOLEAN;
Function EraseDir( stDir : DirStr ) : BOOLEAN;
Function PredDir( stDir : DirStr ) : DirStr;
Function InDir( stDir : DirStr ) : DirStr;
Procedure MkSubDir( S : STRING );
Function MaskWildcards( fn : PathStr;
fnMask : PathStr ) : PathStr;
Procedure FileCRC16( FName : STRING;
Var Result : WORD );
Procedure FileCRC32( FName : STRING;
Var Result : LONGINT );
Function GetVolLabel( Drive : BYTE ) : STRING;
Function GetFileSysType( Drive : BYTE ) : STRING;
{────────────────────────────────────────────────────────────────────────────}
{────────────────────────────────────────────────────────────────────────────}
──────────────────────────────────────────────────────────────────────────────
[FUNCTION]
Function GetVolLabel( Drive : BYTE ) : STRING;
[PARAMETERS]
Drive Source Drive Number (0=Default)
[RETURNS]
The Volume Label of the Selected Drive
[DESCRIPTION]
Retrieves the Volume Label String from the selected Drive.
If there was an Error the String comes back empty.
[SEE-ALSO]
GetFileSysType
DOS_GetMediaID { VDOS }
DOS_SetMediaID { VDOS }
[EXAMPLE]
VAR
S : STRING;
BEGIN
S := GetVolLabel( 0 );
{ S comes back as whatever the current drive Volume Label is }
END;
──────────────────────────────────────────────────────────────────────────────
[FUNCTION]
Function GetFileSysType( Drive : BYTE ) : STRING;
[PARAMETERS]
Drive Source Drive Number (0=Default)
[RETURNS]
File System Type Text of the selected Drive
[DESCRIPTION]
Retrieves the File System Type String from the selected Drive.
If there was an Error the String comes back empty.
[SEE-ALSO]
GetVolLabel
DOS_GetMediaID { VDOS }
DOS_SetMediaID { VDOS }
[EXAMPLE]
VAR
S : STRING;
BEGIN
S := GetFileSysType( 0 );
{ S = 'FAT16' - for this example }
END;